package com.sailing.core.demo.yoho;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class SortArrayIncludeExclude {
	
	public static void main(String[] args) {
		Integer sort_online [] = new Integer[]{147,121,123,125,119,124,258,227,173,114,293,115,122,117,116,118,413,148,163,224,322,323,324,325,326,327,328,329,330,331,152,153,195,196,197,72,74,75,76,238,239,240,349,142,157,77,78,79,80,199,213,217,218,234,303,305,306,307,334,342,156,162,161,300,316,160,164,233,317,341,129,186,235,130,340,134,135,346,364,133,311,210,131,348,339,351,362,320,357,321,359,151,149,231};
		//                                  227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,362,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197
		Integer sort_pre [] = new Integer[]{227,173,125,258,121,123,119,124,118,348,122,115,117,346,114,293,131,133,186,235,163,224,322,323,324,325,326,327,328,329,330,331,72,74,75,76,142,77,78,79,80,199,213,217,218,234,303,305,306,307,334,162,316,320,164,317,295,321,147,149,148,151,231,311,364,357,359,362,116,129,134,135,413,152,153,238,239,240,349,157,342,156,161,300,160,233,341,340,210,339,351,195,196,197
};
		
		
		
		List<Integer> onlineList = new ArrayList<Integer>(Arrays.asList(sort_online));
		List<Integer> preList = new ArrayList<Integer>(Arrays.asList(sort_pre));
		onlineList.removeAll(preList);
		System.out.println("online diff : " + onlineList);
		
		List<Integer> onlineListCopy = new ArrayList<Integer>(Arrays.asList(sort_online)); 
		List<Integer> preListCopy = new ArrayList<Integer>(Arrays.asList(sort_pre));
		preListCopy.removeAll(onlineListCopy);
		System.out.println("pre diff : " + preListCopy);
	}

}
